﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Twodi.Aspect.Interfaces;
using Twodi.Interfaces;
using Twodi.Aspect.Implemented;
using Twodi.Behavior.Interfaces;
using Twodi.Behavior.Implemented;

namespace Twodi.Implemented
{
    public class Component : MouseManaged, ILimitedAspect
    {
        public Component(Game game)
            : base(game)
        {
            this.LimitedProperties = new LimitedAspect(this);
        }

        /// <summary>
        /// Limites do componente.
        /// </summary>
        public Rectangle Limits
        {
            get
            {
                return this.LimitedProperties.Limits;
            }
            set
            {
                this.LimitedProperties.Limits = value;
            }
        }

        public ILimited LimitedProperties
        {
            get;
            set;
        }
    }
}
